﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="messageInfoMain.aspx.cs" Inherits="LGSVR_WEB.program.messageInfoMain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>节目列表</title>
    <link href="/skins/default/css/web.css" rel="stylesheet" type="text/css" />
    <script src="/skins/default/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/skins/default/js/common.js" type="text/javascript"></script>
     <link href="../skins/default/css/thickbox.css" rel="stylesheet" type="text/css" />
    <script src="../skins/default/js/thickbox.js" type="text/javascript"></script>
    <script type="text/javascript">
        function CheckAdd() 
        {
            if (document.getElementById('<%=hdcardID.ClientID%>').value == "")
             {
                alert("请先选择卡号!");
                //    document.getElementByIdx("jobname").focus();
                return false;
            }
        }

    </script>
</head>
<body>
    <form id="theForm" runat="server">
    <div id="ClientMsg">
        <%=MsgContent %></div>
    <div>
     <table id="tblMain" border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
        <tr>
           
            <td id="tdMain" style="border: 0px; width: 100%; height: 100%; vertical-align:top;">
               <div id="MainBody">
        <div class="ListSearch">
         信息所属组:
            <asp:DropDownList runat="server" ID="ddlgroupID" Width="180px" 
                       ></asp:DropDownList>
            &nbsp;&nbsp;&nbsp;&nbsp; 
            节目编号:
            <asp:TextBox ID="txtactID" Width="180" runat="server"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp; 节目内容:<asp:TextBox ID="txtmessageTxt" Width="180" runat="server"></asp:TextBox>
            &nbsp;
            <asp:Button ID="Button3" CssClass="btn" runat="server" OnCommand="Search" Text="搜索" />
        </div>
         <div class="ListSearch">
          <asp:Label ID="lblmessageCard" runat="server"></asp:Label> 
        
        </div>
        <div class="buttons">
            <ul>
             <li class="positive"><a id="aAdd" onclick="CheckAdd();" href="messageInfoEdit.aspx?cardID=" + document.getElementById('<%=hdcardID.ClientID%>').value>
               <%-- <li class="positive"><a href='messageInfoEdit.aspx?cardID=document.getElementById("<%=hdcardID.ClientID%>").value'>--%>
                    <img src="../icon/buttons/apply2.png" alt="" style="vertical-align: middle" />添加</a></li>
                <li class="negative">
                    <asp:LinkButton ID="lbtnUnable" runat="server" OnClick="lbtnUnable_Click">
                            <img src="../icon/buttons/delete.png" alt="" />停用</asp:LinkButton></li>
                <li class="negative">
                    <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click">
                            <img src="../icon/buttons/cross.png" alt="" />彻底删除</asp:LinkButton></li>
                <li class="negative">
                    <asp:LinkButton ID="lbtaudit" runat="server" OnClick="lbtaudit_Click">
                            <img src="../icon/buttons/apply2.png" alt="" />审核</asp:LinkButton></li>
                <li class="negative">
                    <asp:LinkButton ID="ltbMessageTimes" runat="server" OnClick="lbtMessageTimes_Click">
                            <img src="../icon/buttons/apply2.png" alt="" />信息时间</asp:LinkButton>
                    <%--<a class="thickbox" href="MessageTimes.aspx?ID=2&keepThis=true&TB_iframe=true&height=200&width=500">
                            <img src="../icon/buttons/delete.png" alt="" />信息时间</a>--%>
                </li>
                <li class="negative"><a onclick="Refresh()">刷新</a></li></ul>
        </div>
        <div class="clear">
        </div>
        <table class="listtb" cellpadding="1" cellspacing="1" id="ListInfo">
            <tr class="header">
                <td style="width: 30px">
                   <asp:HiddenField ID="hdcardID" runat="server" />
                    <input type="checkbox" name="checkBoxAll" id="checkBoxAll" value="<%#Eval(ID) %>" />
                </td>
                <td style="width: 100px;" class="first">
                    序号
                </td>
                <td style="width: 150px;" class="first">
                    节目编号
                </td>
                   <td style="width: 150px;" class="first">
                    节目标题
                </td>

                    <td style="width: 150px;" class="first">
                    信息编号
                </td>
                 <td style="width: 100px;" class="first">
                    审核
                </td>
                 <td style="width: 100px;" class="first">
                    操作员
                </td>
                 <td style="width: 120px;" class="first">
                    节目状态
                </td>
                 <td style="width: 120px;" class="first">
                    节目分组
                </td>
                <%-- <td style="width: 150px;" class="first">
                    进入方式
                </td>
                     <td style="width: 150px;" class="first">
                    退出方式
                </td>
                     <td style="width: 150px;" class="first">
                    停留时间
                </td>
                
                   <td style="width: 150px;" class="first">
                    进入速度
                </td>
              
                    <td style="width: 150px;" class="first">
                    退出速度
                </td>--%>
                    <td style="width: 150px;" class="first">
                    播放次数
                </td>
                      <td style="width: 150px;" class="first">
                    开始时间
                </td>
                     <td style="width: 150px;" class="first">
                    结束时间
                </td>
                <td style="width: 120px">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="rptBody" runat="server">
                <ItemTemplate>
                    <tr onmousemove="this.className='tdOver'" onmouseout="this.className = ''">
                        <td style="width: 3%; padding-left: 10px">
                            <input type="checkbox" id="chkId" name="chkId" value='<%#Eval("ID")%>' />
                        </td>
                        <td>
<%# Container.ItemIndex + 1%>
</td>
                        <td>
                            <%#Eval("messageID")%>
                        </td>
                        <td>
                            <%#Eval("messageTitle")%>
                        </td>
                        <td>
                            <%#Eval("actID")%>
                        </td>
                         <td>
                            <%#Eval("msgState")%>
                        </td>
                         <td>
                            <%#Eval("userName")%>
                        </td>
                         <td>
                            <%#Eval("msgState")%>
                        </td>
                         <td>
                            <%#Eval("groupName")%>
                        </td>

                      
                       <%-- <td>
                            <%#Eval("InTypeName")%>
                        </td>
                        <td>
                            <%#Eval("OutTypeName")%>
                        </td>
                        <td>
                            <%#Eval("stayTime")%>
                        </td>
                        <td>
                            <%#Eval("inSpeed")%>
                        </td>
                        
                        <td>
                            <%#Eval("outSpeed")%>
                        </td>
                       --%>
                         <td>
                            <%#Eval("replayTimes")%>
                        </td>
                        <td>
                            <%#Eval("BeginTime")%>
                        </td>
                        <td>
                            <%#Eval("EndTime")%>
                        </td>
                        <td class="op">
                          
                             <%--   <asp:ImageButton ID="edit" ImageUrl="/skins/default/images/del.png" ToolTip="删除" OnCommand="Delete" CommandArgument='<%#Eval("ID") %>' runat="server" />--%>
                           <%-- <a title="编辑" href='messageInfoEdit.aspx?action=edit&id=<%#Eval("id") %>&cardID=' + document.getElementById("<%=hdcardID.ClientID%>").value>--%>
                             <a title="编辑" href='messageInfoEdit.aspx?action=edit&id=<%#Eval("id") %>&cardID=<%#Eval("cardID") %>'>
                                <img alt="编辑" src="/skins/default/images/edit.png" />
                            </a>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
         
        </table>
        <div style="clear: both;">
        </div>
        <!--分页:BEGIN-->
        <%=SplitHtmlCode%>
        <!--分页:END-->
    </div>
            </td>
        </tr>
    </table>
    </div>
    </form>
</body>
<script type="text/javascript">
    if (document.getElementById('<%=hdcardID.ClientID%>').value !="")
        document.getElementById("aAdd").href = "messageInfoEdit.aspx?cardID=" + document.getElementById('<%=hdcardID.ClientID%>').value
    else
        document.getElementById("aAdd").href = "#";
   </script>
</html>


